package com.johnny.xia.jsr;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Setter
@Getter
@ToString
public class Sku implements Serializable {

    private static final long serialVersionUID = 3083868760416813212L;

    @NotNull(message="skuId is null")
    private Long skuId;

    @NotNull(message="price is null")
    private BigDecimal price;

    public Sku( Long skuId, BigDecimal price) {
        this.skuId = skuId;
        this.price = price;
    }

    public Sku(){}
}
